﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseData.Exts;
using BaseData.Models;
using BaseLib.Helper;
namespace WebUI.UserControls.Share
{
    public partial class PageView : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //using (var ctx = new ContextExt())
            //{
            //    var req = new GetNewsQueryString().Get(Request.QueryString["qs"]);
            //    List<Web_Base_News_Info> infos;
            //    if (req.InfoId == 0)
            //    {
            //        if (req.NodeId == 0)
            //            req.NodeId = new GetNewsNodeIdByFolder().Get(ctx, Request.QueryString["folder"]);
            //        infos = (from q in ctx.Web_Base_News_Info where q.NodeId == req.NodeId select q).ToList();
            //    }
            //    else
            //        infos = (from q in ctx.Web_Base_News_Info where q.PkId == req.InfoId select q).ToList();
            //    infos.ForEach(f => { f.Content = (f.Content ?? "").Replace("&lt;", "<").Replace("&gt;", ">"); });
            //
            //    var itemx = new List<Ext_News_All_Field_Node_Infox>();
            //    foreach (var itemx1 in infos)
            //    {
            //        itemx.Add(new Ext_News_All_Field_Node_Infox { Info = itemx1, });
            //    }
            //    var infox = new Ext_News_All_Field_Node_Infos().Get(itemx);
            //    this.Repeater1.DataSource = infox;
            //    this.Repeater1.DataBind();
            //}
        }
    }
}